Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More shutdown event processing #58

Merged
merged 1 commit into from
Sep 24, 2019
Merged

Conversation

paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Sep 19, 2019

This fixes 2 different crashes at shutdown.

The initial approach of checking if session was running, then call RAF would fail as we would call is_running() before processing the event.

I got rid of the is_running() mechanic and instead made wait_for_animation_frame return an Option. Assuming that returning None mean the session has ended.

Fix #47

@paulrouget
Copy link
Contributor Author

@Manishearth r?

@Manishearth
Copy link
Member

@bors-servo r+

i feel like we're jumping between designs here, but really the solution is to do #30 so whatever works best for now is fine

@bors-servo
Copy link
Contributor

📌 Commit 7d667e0 has been approved by Manishearth

@bors-servo
Copy link
Contributor

⌛ Testing commit 7d667e0 with merge d4f585c...

bors-servo pushed a commit that referenced this pull request Sep 24, 2019
More shutdown event processing

This fixes 2 different crashes at shutdown.

The initial approach of checking if session was running, then call RAF would fail as we would call `is_running()` before processing the event.

I got rid of the `is_running()` mechanic and instead made `wait_for_animation_frame` return an Option. Assuming that returning None mean the session has ended.

Fix #47
@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: Manishearth
Pushing d4f585c to master...

@bors-servo bors-servo merged commit 7d667e0 into servo:master Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openxr: how to properly end session?
3 participants